﻿<%@ page import="framework.core.*"%>
<%@ page import="framework.custom.*"%>
<%@ page import="com.apep.gw.data.*"%>
<%@ page import="system.*"%>
<%@ page import="system.base.*"%>
<%@ page import="system.data.*"%>
<%@ page import="system.imp.*"%>
<%@ page import="system.servlet.*"%>
<%!
	public static String boxMsg(SrvContext context)
	{
		if(context==null) return "";
		String info = context.getErrorMsg();
		if(info==null || info.equalsIgnoreCase("")) return "";
		return "alert(\""+info+"\");";
	}

%>
<%
response.setHeader("Cache-Control", "No-cache");
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
response.setDateHeader("Expires", 0);

//purehead.jsp 1 import 2 functions 3 common codes

/*common codes
1 db connection
2 validatePurview
3 errorMsg
4 g_ComType
*/

DBConnection con = null ;
try
{
	SrvContext context = SrvContext.getContext(request);
	LoginContext loginInfo = LoginContext.get(context);
		
	con = DBConnection.open(loginInfo.isDev()); 
	
	String errorMsg = (String)request.getAttribute("ErrorMsg");  
	
%>

